import request from '@/utils/request'

// 查询字典类型列表
export function listPeople(query) {
  return request({
    url: '/community/dis/people/list',
    method: 'get',
    params: query
  })
}

// 查询字典类型详细
export function getPeople(disId) {
  return request({
    url: '/community/dis/people/' + disId,
    method: 'get'
  })
}

// 新增字典类型
export function addPeople(data) {
  return request({
    url: '/community/dis/people',
    method: 'post',
    data: data
  })
}

// 修改字典类型
export function updatePeople(data) {
  return request({
    url: '/community/dis/people',
    method: 'put',
    data: data
  })
}

// 删除字典类型
export function delPeople(disId) {
  return request({
    url: '/community/dis/people/' + disId,
    method: 'delete'
  })
}





// 获取字典选择框列表
export function optionselect() {
  return request({
    url: '/community/dis/people/optionselect',
    method: 'get'
  })
}
